#ifndef __TEMPLATE_H
#define __TEMPLATE_H

#include "device.h"

typedef struct
{
    int             (* init) (void *cfg);
    int             (* ioctl) (int cmd, void *arg);
    unsigned int    (* read) (unsigned int pos, void *buffer, unsigned int size, void *opt);
    unsigned int    (* write) (unsigned int pos, void *buffer, unsigned int size, void *opt);
    int             (* readable) (void);
    int             (* writeable) (void);
    void            (* flush) (void);
} TEMPLATE,*TEMPLATE_t;


#endif
